﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;

namespace Xpom_Xpum__Integrated_Development_Environment.Model.Controls
{
    public class ProjectItemModel
    {
        #region Constructor

        public ProjectItemModel() { }

        public ProjectItemModel(string path, bool isDirectory)
        {
            this.Name = System.IO.Path.GetFileName(path.TrimEnd('\\'));
            this.Path = path;
            this.IsDirectory = isDirectory;
            this.Items = new List<ProjectItemModel>();
        }

        #endregion

        #region Commands

        #endregion

        #region Fields

        public bool IsDirectory = false;

        #endregion

        #region Properties

        public string Name { get; set; }

        public string Path = "";

        public List<ProjectItemModel> Items { get; set; }

        #endregion

        #region Methods

        #endregion
    }
}
